reftests: Fix CSS for various tests
authorBenjamin Otte <otte@redhat.com>
Fri, 12 Apr 2019 03:25:51 +0000 (05:25 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 12 Apr 2019 17:34:29 +0000 (19:34 +0200)
* :nth-child(first) => :first-child
* :nth-child(last) => :last-child
* Add semicolons at end of declarations
* Remove spaces between color functions (shade, alpha, ...) and args

testsuite/reftests/box-pseudo-classes.css
testsuite/reftests/box-shadow-spec-inset.css
testsuite/reftests/css-match-descendant-later.css
testsuite/reftests/css-match-siblings.css
testsuite/reftests/grid-expand.css
testsuite/reftests/label-shadows.css
testsuite/reftests/label-sizing.css
testsuite/reftests/opacity.css
testsuite/reftests/style-properties-only-child.css
testsuite/reftests/treeview-fixed-height.css

index 5aed8d07cc445d11ef02f229ee1f27b964c7c6a5..a6abd192432c2ba7f504fd4107b84001721a700f 100644 (file)
@@ -10,19 +10,19 @@ button:nth-child(odd) {
   background-color: red;
 }
 
-button:nth-child(first) {
+button:first-child {
   background-color: purple;
 }
 
-button:nth-child(last):nth-child(even) {
+button:last-child:nth-child(even) {
   background-color: lime;
 }
 
-button:nth-child(last):nth-child(odd) {
+button:last-child:nth-child(odd) {
   background-color: purple;
 }
 
-button:nth-child(last):nth-child(first) {
+button:last-child:first-child {
   background-color: blue;
 }
 
index a7f5e7b69b4b2ce9a66afd9ff6dd4ab1079642a1..9bf2cf0d06b9459bfd2e6546ad804fc288525804 100644 (file)
@@ -9,7 +9,7 @@
 }
 
 .column1 {
-  /* border-radius: 20px */;
+  /* border-radius: 20px; */
 }
 
 .column2 {
@@ -20,7 +20,7 @@
   box-shadow:
     rgba(0,0,0,1)
     15px 15px
-    inset
+    inset;
 }
 
 .row3 {
@@ -28,7 +28,7 @@
     rgba(0,0,0,1)
     15px 15px 0
     10px /*spread*/
-    inset
+    inset;
 }
 
 .reference-border {
index f0d62ef97ecbc548e7a78862babbad05740bbdc5..5f1a0af3e3a8b1154af3bcf3e72705333120c2bd 100644 (file)
@@ -1,11 +1,11 @@
 box {
-  background-color: blue
+  background-color: blue;
 }
 
 grid box {
-  background-color: red
+  background-color: red;
 }
 
 window > grid box {
-  background-color: blue
+  background-color: blue;
 }
index 4c99c614bc4b3120afc6dffb454f025e07b1ff2f..7cc00a0a4657635fd7a5d4a348d97779d0d859f5 100644 (file)
@@ -1,6 +1,6 @@
 * + *,
 #red {
-  color: red
+  color: red;
 }
 
 * ~ * ~ label,
index fd336dbfe1833607c0eb053bb1ab52f789f2ebdb..ba59114011d1c60957b5a3ffef52110191003617 100644 (file)
@@ -1,3 +1,3 @@
 box {
-  background-color: lime
+  background-color: lime;
 }
index 9598c1a4154b970de2a490928de92881fe8bb3b4..7c87e268eab211d342b6f5858c20629e57be68b1 100644 (file)
@@ -3,5 +3,5 @@ label {
 }
 
 .no-shadow {
-  text-shadow: none
+  text-shadow: none;
 }
index 4e9dad62add4e51361b23c958ff6b4792c0e55b3..4d774056573b4394393c5f4cb54c6a9b87236680 100644 (file)
@@ -6,5 +6,5 @@
 }
 
 GtkPaned label {
-  background-color: pink
+  background-color: pink;
 }
index d95ba8d33b81bf84afc91ad7e10e75fbb56d3ebd..f8bdaac1478c0d345657fffc528a401fa7975bc5 100644 (file)
@@ -9,9 +9,9 @@ button {
 }
 
 #alpha {
-  opacity: 0.5
+  opacity: 0.5;
 }
 
 #ref {
-  opacity: 0.125
+  opacity: 0.125;
 }
index e652ef7615ecdf08ce61ba15ee55afb84d8e2052..10c1178fdcad811dff45cead7b824d367ddb2696 100644 (file)
@@ -1,4 +1,4 @@
-.only-child-ref:nth-child(first):nth-child(last) {
+.only-child-ref:first-child:last-child {
     color: blue;
     background-color: red;
 }
index a448ebca151458d5211b0601681ea56f8626afb8..a3576e2f771c46ff3afcb4f0596b26fcc560e0e3 100644 (file)
@@ -7,7 +7,7 @@
 @define-color color_base #c8c4c0;
 @define-color color_sel #406080;
 @define-color color_tip #ffffc0;
-@define-color color_dark shade (@color_base, 0.6);
+@define-color color_dark shade(@color_base, 0.6);
 
 * {
     background-color: @color_base;
@@ -47,26 +47,26 @@ GtkCheckButton:selected {
 }
 
 .slider, .pane-separator {
-    background-color: alpha (black, 0);
-    color: alpha (black, 0);
+    background-color: alpha(black, 0);
+    color: alpha(black, 0);
 }
 
 /* GRADIENTS */
 
 button, .notebook tab:active, .slider {
-    background-image: linear-gradient(to bottom, shade (@color_base, 1.2), @color_base);
+    background-image: linear-gradient(to bottom, shade(@color_base, 1.2), @color_base);
 }
 
 button:active, .notebook tab, .trough {
-    background-image: linear-gradient(to bottom, shade (@color_base, 0.8), @color_base);
+    background-image: linear-gradient(to bottom, shade(@color_base, 0.8), @color_base);
 }
 
 button.vertical, .slider.vertical {
-    background-image: linear-gradient(to right, shade (@color_base, 1.2), @color_base);
+    background-image: linear-gradient(to right, shade(@color_base, 1.2), @color_base);
 }
 
 button.vertical:active, .trough.vertical {
-    background-image: linear-gradient(to right, shade (@color_base, 0.8), @color_base);
+    background-image: linear-gradient(to right, shade(@color_base, 0.8), @color_base);
 }
 
 column-header > .button {
@@ -74,12 +74,12 @@ column-header > .button {
 }
 
 .progressbar {
-    background-image: linear-gradient(to bottom, shade (@color_sel, 1.2), @color_sel);
-    border-color: shade (@color_sel, 0.7);
+    background-image: linear-gradient(to bottom, shade(@color_sel, 1.2), @color_sel);
+    border-color: shade(@color_sel, 0.7);
 }
 
 .progressbar.vertical {
-    background-image: linear-gradient(to right, shade (@color_sel, 1.2), @color_sel);
+    background-image: linear-gradient(to right, shade(@color_sel, 1.2), @color_sel);
 }
 
 /* SPACING */